local jianju2022 = fk.CreateSkill{
  name = "jianju2022",
  tags = { Skill.Compulsory },
  dynamic_desc = function(self, player)
    if player:hasMark("@&hx__1v3_mode_lordgeneral") then
      return "jianju2022_1v3"
    else
      return "jianju2022"
    end
  end,
}


jianju2022:addEffect(fk.TurnEnd,{
  mute = true,
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(jianju2022.name) and player.room:getBanner("RoundCount") == 3
    and not player.room:isGameMode("hx__1v3_mode")
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:notifySkillInvoked(player, jianju2022.name)
    for _, p in ipairs(room:getOtherPlayers(player)) do
      room:killPlayer({who = player})
      room:killPlayer({ who = p })
    end
  end,
})


jianju2022:addEffect("distance",{
  correct_func = function(self, from, to)
    if from:hasSkill(self) then
      return -999
    end
  end,
})



return jianju2022

